package com.hdcx.Minfresh.fragment;

import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.hdcx.Minfresh.R;
import com.hdcx.Minfresh.adapter.MainAdapter;
import com.hdcx.Minfresh.view.FullyLinearLayoutManager;

/**
 * Created by Administrator on 2016/11/9.
 */

public class CopyFragment extends BaseFragment {
    private MainAdapter adapter;
    private RecyclerView recycler;

    @Override
    public int getLayout() {
        return R.layout.fragment_main;
    }

    @Override
    public void initView(View view) {
        recycler = (RecyclerView) view.findViewById(R.id.recycler);
    }

    @Override
    public void initData() {
        adapter = new MainAdapter(getActivity());
        recycler.setLayoutManager(new FullyLinearLayoutManager(getActivity(),LinearLayoutManager.VERTICAL,false));
        recycler.setAdapter(adapter);
    }
}
